package com.mall.service;

import com.mall.po.Vip;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author mahaoqi
 * @ClassName VipService
 * @Description TODO
 * @Date 2021/1/5 20:06
 * @Version 1.0
 **/
public interface VipService {


    /*
     * @Author mahaoqi
     * @Description 添加vip
     * @Date 2021/1/6 16:02
     * @Param [vip]
     * @return java.lang.Boolean
     **/
    public Boolean addVip(Vip vip);

    /*
     * @Author mahaoqi
     * @Description 根据id删除
     * @Date 2021/1/6 19:05
     * @Param [vipid]
     * @return java.lang.Boolean
     **/
    public Boolean removeById(int vipid);

    /*
     * @Author mahaoqi
     * @Description 修改
     * @Date 2021/1/6 20:15
     * @Param [vip]
     * @return java.lang.Boolean
     **/
    public Boolean modifyVip(Vip vip);



    /*
     * @Author mahaoqi
     * @Description 查找
     * @Date 2021/1/7 14:42
     * @Param [vipid]
     * @return com.mall.po.Vip
     **/
    public Vip findById(Integer vipid);

    /*
     * @Author mahaoqi
     * @Description 分页查询
     * @Date 2021/1/7 14:49
     * @Param [page, limit]
     * @return java.util.List<com.mall.po.Vip>
     **/
    public  List<Vip> findList(Integer page, Integer limit);

    /*
     * @Author mahaoqi
     * @Description 查询总记录数
     * @Date 2021/1/7 15:12
     * @Param []
     * @return java.lang.Integer
     **/
    public Integer findCount();

    /*
     * @Author mahaoqi
     * @Description 批量删除
     * @Date 2021/1/7 15:20
     * @Param [vipids]
     * @return boolean
     **/
    public boolean removeBatch(Integer[] vipids);
}
